package guoanmaker.operator.business.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;


import guoanmaker.operator.business.model.OperatorCustomers;

public interface OperatorCustomersRepository extends JpaRepository<OperatorCustomers, String>, JpaSpecificationExecutor<OperatorCustomers>{
	@Query("select u from OperatorCustomers u  where u.phone=:phone")
	 public List<OperatorCustomers> findByCustomers(@Param("phone") String phone);
	
	@Query("select u from OperatorCustomers u  where u.messId=:messId")
	 public List<OperatorCustomers> findBymessId(@Param("messId") String messId);

}
